<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>

<!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]-->
<!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]-->
<!--[if !IE]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<!-- BEGIN HEAD -->
<head>
	<meta charset="utf-8" />
	<title>我的外卖_<?php echo ($name); ?></title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta content="width=device-width, initial-scale=1.0" name="viewport" />
	<meta content="" name="description" />
	<meta content="" name="author" />
	   <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Bootstrap -->
 
	<!-- BEGIN GLOBAL MANDATORY STYLES -->          
	
		<link href="<?php echo (TEMPS); ?>/css/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
	<link href="<?php echo (TEMPS); ?>/css/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
	<link href="<?php echo (TEMPS); ?>/css/css.css" rel="stylesheet" type="text/css"/>
<!-- END GLOBAL MANDATORY STYLES -->
	<!-- BEGIN THEME STYLES --> 
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="__ROOT__/Public/js/html5shiv.min.js"></script>
        <script src="__ROOT__/Public/js/respond.min.js"></script>
    <![endif]-->
	<!-- END THEME STYLES -->
	
	    <script src="__ROOT__/Public/js/jquery.js"></script>
    <script src="__ROOT__/Public/js/bootstrap.min.js"></script> 
	
 <script src="__ROOT__/Public/js/sco.ajax.js"></script> 

	
</head>
<!-- BEGIN BODY -->
<body>



<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta content="{key}" name="description" />
<meta content="{des}" name="author" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="<?php echo (TEMPS); ?>/css/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo (TEMPS); ?>/css/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
<link href="<?php echo (TEMPS); ?>/css/css.css" rel="stylesheet" type="text/css"/>
<script src="__ROOT__/Public/js/jquery.js"></script>
<script src="__ROOT__/Public/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="__ROOT__/Public/css/yuwei.css">
<link rel="stylesheet" href="<?php echo (TEMPS); ?>/css/common.css">
<script type="text/javascript" src="<?php echo (TEMPS); ?>/js/common.js"></script>
</head>
<body>
<!-- 头部开始 -->
<div class="headerLine"></div>
    <header>
    	<div class="header">
	    	<div class="left">
	    		<span>订餐热线 :<b>13879144915</b> </span>
	    		<span>服务时间 :<b>08:00-17:00</b> </span>
	    	</div>
	    	<div class="right">
<!-- 判断,如果用户uid存在,就说么已经登陆 -->
<?php if(empty($uid)): ?><a href="<?php echo U('Public/register/');?>" rel="nofollow">注册</a>
<a rel="nofollow" href="/index.php?m=public&a=login&reurl=<?php echo urlencode('http://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']); ?>" >登录</a>
<a href="<?php echo U('Member/index/');?>" rel="nofollow">我的外卖</a>
<?php else: ?>    
<a href="<?php echo U('Member/index/');?>"><i class="fa fa-user-md"></i> <?php if(empty($nickname)): echo ($username); else: echo ($nickname); endif; ?></a></li>
<a href="<?php echo U('Member/index/');?>" rel="nofollow"><i class="fa fa-list"></i> 我的外卖</a>
<a href="<?php echo U('Public/logout/');?>" rel="nofollow"><i class="fa fa-power-off"></i> 退出</a><?php endif; ?>
    	</div>
    </header>
 <!-- 头部结束 -->
<nav class="navbar bs-docs-nav" role="navigation"> 
<div class="navhead w120">
	<ul class="nav navbar-nav ulpast">
      <li><a href="__ROOT__">网站首页</a></li>
	  <li><a href="<?php echo U('Article/l/','id=15');?>">新品上架</a></li>
	  <li><a href="<?php echo U('Gift/index/');?>">本店特色</a></li>
	  <li><a href="<?php echo U('Message/index/');?>">美味分类</a></li>
     	<?php if(empty($uid)): ?><li><a href="<?php echo U('Members/index/');?>">我的订单</a></li>
     	<?php else: ?> 
	  	<li><a href="<?php echo U('Member/order/');?>">我的订单</a></li><?php endif; ?>
	  <li><a href="<?php echo U('Message/index/');?>">关于我们</a></li>
	  <li><a href="<?php echo U('Message/index/');?>">联系我们</a></li>
	   <li><a href="<?php echo U('Message/index/');?>">服务宗旨</a></li>
	   <div class="lines">
	   	<span class="hover">1</span>
	   </div>
    </ul>
 </div>
  </div><!-- /.navbar-collapse -->
</nav>
<script type="text/javascript">
	$(document).ready(function() {
		lens =$('.ulpast').find('li').length;
		$('.ulpast').find('li').hover(function() {
			w = $(this).width();
			z = $(this).index();
			$('.lines .hover').stop().animate({left: w*z}, 500)
		}, function() {
			
		});
	});
</script>
 <!-- 全局左侧导航菜单 -->
  <div class="col-md-2 hidden-xs" id="menus"> 
     <ul class="list-unstyled left-border" style="position:relative">
     <div class="topicon" style="text-align:center">
     	这里是一张图
     </div>
      <?php if(is_array($foodcatlist)): $i = 0; $__LIST__ = array_slice($foodcatlist,0,7,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sub): $mod = ($i % 2 );++$i;?><li> <a href="<?php echo U('List/index','id='.$sub['fcid']);?>" class="list-group-item"><span style="margin-left:60px;"><?php echo ($sub["fcname"]); ?></span><span class="fa fa-caret-right pull-right"></span></a></li><?php endforeach; endif; else: echo "" ;endif; ?>
      <div class="icon">
       	酱
       </div>
     </ul> 
    </div> 
 <!-- 全局左侧导航菜单 -->

<div class="h10"></div>








<div class=" container " style="margin-top:10px">
<div class="panel panel-default" style="min-height:600px">
  <div class="panel-body">
<div class="row">
   
	  <div class="col-lg-12 col-md-12 col-xs-12 " >
	  
 

		
	

  <h3 class="dd">我的订单</h3>


		
         <table class="table ta">
        <thead>
          <tr>
            <th>订单号</th>
           
            <th>下单时间</th>
            <th>订单金额</th>
			<th>订单状态</th>
			<th>结束时间</th>
			<th>操作</th>
          </tr>
        </thead>
        <tbody>
		<?php if(is_array($orderlist)): $i = 0; $__LIST__ = $orderlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
            <td><?php echo ($vo["oid"]); ?></td>
           
            <td><?php if(empty($vo["order_ctime"])): else: ?> <?php echo (date("Y-m-d H:i",$vo["order_ctime"])); endif; ?></td>
            <td><?php echo ($vo["orderprice"]); ?></td>
			<td><?php switch($vo["orderstatus"]): case "4": ?>已完成<?php break;?>
													<?php case "5": ?>送货中<?php break;?>
                                                    <?php default: ?> 提交成功<?php endswitch;?></td>
            <td><?php if(empty($vo["order_endtime"])): else: ?> <?php echo (date("Y-m-d H:i",$vo["order_endtime"])); endif; ?></td>
			<td>
			 <a href="<?php echo U('Members/orderdetail/','id='.$vo['oid']);?>" data-target="#ajax_target" data-trigger="ajax">查看</a>
			
			</td>
           
          </tr><?php endforeach; endif; else: echo "" ;endif; ?>
     
        </tbody>
      </table>
	   
	  
      
	    <div class="row">
					  <div class="col-md-7 col-sm-12">
					  </div>
					  <div class="col-md-5 col-sm-12">
					          

                              <ul class="pagination pull-right">
							    <?php echo ($page); ?>
                                
                             </ul>


					  </div>
					  
					  
					  </div>
			 
	
			  <div id="ajax_target">
			  
			  	
				
			  </div>
			 
			 
			 
			 
			 
			 
			 
			 </div>
			 </div> 
			 
			 
			 
			 
			 </div>
			 </div>

 	 </div>
			 </div>   
</div><!-- end container -->




<div class="footer">
<div class="container">
<p align="center">(c) 2014 <?php echo ($name); ?> 　<?php echo ($icp); ?> 　　</p>
<p align="center" class="ps">程序由<a title="WeiCake" href="http://www.yuwei520.com/">WeiCake</a>提供</p>
</div>

  </div>  
    <script src="__ROOT__/Public/js/simpleCart.min.js"></script> 
	 
	

<div class="container navbar-fixed-bottom visible-xs" style="background-color:#FFF;">
  <div class="row ">
  
       <div class="col-md-3 col-xs-3"><a class="icon-btn" href="<?php echo U('Index/index/');?>">
								<i class="fa fa-home"></i>
								<div>首页</div>
								
							</a></div>
	 <div class=" col-xs-3">
	 <div class="btn-group dropup">
	 <a class="icon-btn dropdown-toggle" data-toggle="dropdown" >
								<i class="fa fa-th-large"></i>
								<div>菜品分类</div>
								
							</a>
							<ul class="dropdown-menu" style="min-width:245px;" role="menu">
							<?php if(is_array($foodcatlist)): $i = 0; $__LIST__ = $foodcatlist;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li><a class="btn" href="<?php echo U('index/flist/','id='.$vo['fcid']);?>"><?php echo ($vo["fcname"]); ?></a></li>
							 <li class="divider"></li><?php endforeach; endif; else: echo "" ;endif; ?>
							
                             </ul>
							</div>
							
							</div>
	<div class="col-md-3 col-xs-3">
	 <div class="btn-group dropup">
	 <a class="icon-btn" href="<?php echo U('Member/index/');?>">
								<i class="fa fa-user"></i>
								<div>我的订单</div>
								
							</a>
						
							</div>
							
							</div>
	 
	 
	 
	
	 <div class="col-md-3 col-xs-3">
	 <a class="icon-btn" href="<?php echo U('Cart/index/');?>">
								<i class="fa fa-shopping-cart"></i>
								<div>购物车</div>
								<span class="badge" > <span class="simpleCart_quantity "></span>
		</span>
							</a>
							
	 </div>
  
   <!-- <div class="col-md-3 col-xs-3"><a class="icon-btn" href="<?php echo U('Home/map/');?>">
								<i class="fa fa-map-marker"></i>
								<div>店铺位置</div>
								
							</a></div>-->
  </div>

</div>

	

	    <script src="__ROOT__/Public/js/jquery.js"></script>
    <script src="__ROOT__/Public/js/bootstrap.min.js"></script> 

</body>
<!-- END BODY -->
</html>